#ifndef MAIN_WINDOW_H
#define MAIN_WINDOW_H

#include <QMainWindow>
#include <QMessageBox>
#include "src/dialog_create.h"
#include "src/serial_widget.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    DialogCreate* dialogCreate;
    void addConnection();

private slots:
    void on_actionAdd_triggered();
    void on_actionClose_triggered();
    void on_actionCloseAll_triggered();

    void on_tabWidget_tabCloseRequested(int index);



private:
    Ui::MainWindow *ui;
};

#endif // MAIN_WINDOW_H
